﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
namespace JTicket.UI.Extention.IHandler
{
    public class LevelHandler:IHttpHandler
    {



        #region IHttpHandler 成员

        public bool IsReusable
        {
            get { return false; }
        }

        public void ProcessRequest(HttpContext context)
        {
            HttpRequest request = context.Request;
            HttpResponse response = context.Response;
            BLL.C_CodeNote bllCodeNote = new BLL.C_CodeNote();
            List<Model.C_CodeNote> list = bllCodeNote.GetListAllByGroupCod();
            int flag = list.Count();
            response.Write("[");
            if (flag > 0)
            {
                foreach (var x in list)
                {
                    response.Write(JsonHelper.ObjectToJson(x));
                    if (--flag > 0)
                    {
                        response.Write(",");
                    }
                }
            }
            response.Write("]");
            response.End();
        }
        #endregion
    }
}